@echo off
set CURRDIR=%CD%
set JAVA="C:\Program Files (x86)\Java\jre6\bin\java.exe"
rem location to jar file
set PONY_JAR=ponyparser.jar
rem location to flex sdk
set FLEX_SDK=C:\FlexSDK\flex_sdk_4.0.0.14159
rem don't touch
set CLASSPATHS="ponyparser.jar;%FLEX_SDK%\lib\*"

rem as3 classpaths to use for resolving
set PONY_CLASSPATHS="intrinsic/FP9;./intrinsic/FP10;./"
rem file to run complete on
set PONY_FILE=MoonshineTest.as

rem line index
rem p.invokePonyComplete(file, 11, 18, classPaths, "xml");
set PONY_LINEINDEX=13
rem set PONY_LINEINDEX = 13
rem  char index, if you are using FD or NotePad++ ( other editors may be the same) you need to make sure that a TAB \t is only counted as 1 space,
rem and not 4 ( as in with FD) , also this should be at the end of a "dot" Example file included
set PONY_CHARINDEX=18
rem set PONY_CHARINDEX=20


%JAVA% -cp %CLASSPATHS% PonyComplete --method completion --cp "%PONY_CLASSPATHS%"  --file "%PONY_FILE%@%PONY_LINEINDEX%@%PONY_CHARINDEX%"
